home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / B_EVENT.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  46 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   B_ETCHED.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16.  
  17.   These borders I use to denote event windows. They come in handy when you
  18.   have 2 or 3 sub-windows within the main window and you need to let the
  19.   user know which of them is currently active. As always, if the box color
  20.   is > 15 (out of range) the face/center of the box is NOT overwritten so
  21.   you don't have to re-print your data just to change the color of the
  22.   border.
  23.   There is 1 pixel of black, 2 pixels of colors, and an inner pixel of
  24.   black that gives good seperation from the surrounding screen.
  25. $endif
  26.  
  27. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  28. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  29.                                                     '┌───────────────────────
  30. $INCLUDE "DAS-NB01.INC"                             '│
  31. $INCLUDE "DAS-NBV1.INC"                             '│
  32. $INCLUDE "DAS-NBV2.INC"                             '│
  33.                                                     '│
  34. CLS                                                 '│ get the VGA screen
  35. SCREEN 12                                           '│ set-up
  36. GraphicSETUP                                        '│
  37. fLoadDAScolor                                       '│ load 3D color system
  38.                                                     '│
  39. GBoxEvent  0, 0,  63, 63, 255, 5, 10                '│ off box grey/grey
  40. GBoxEvent 70, 0, 133, 63, 255, 4, 11                '│  on box red/yellow
  41.                                                     '│
  42. WHILE NOT INSTAT : WEND                             '│ a clean exit
  43. CLS : PALETTE : SCREEN 0 : END                      '│
  44.                                                     '└───────────────────────
  45.  
  46.